package the.workshop.milktea.infrastructure.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.wisteria.framework.web.mvc.entity.SuperEntity;

/**
 * <p>
 * 设备
 * </p>
 *
 * @author huamu
 * @since 2023-04-01
 */
@TableName("milktea_device")
@Data
public class Device extends SuperEntity {

    private static final long serialVersionUID = 6074664925357434628L;
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 序列号
     */
    @TableField("serial_number")
    private String serialNumber;

    /**
     * IP地址
     */
    @TableField("ip")
    private String ip;

    /**
     * 工作时长
     */
    @TableField("working_hours")
    private String workingHours;

    /**
     * MAC地址
     */
    @TableField("mac")
    private String mac;

    /**
     * 是否锁机。0否；1是
     */
    @TableField("lock_status")
    private Integer lockStatus;

    /**
     * 门店ID
     */
    @TableField("shop_id")
    private Integer shopId;
}
